package org.bigdata.framework.admin.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.bigdata.framework.core.protocol.IBaseService;
import org.bigdata.framework.core.protocol.IPublicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {

	@Autowired
	private IBaseService baseService;

	@Autowired
	private IPublicService publicService;

	@RequestMapping("login.html")
	public String toLogin(HttpServletRequest request, Model model) {

		return "/modules/login";
	}

	@RequestMapping("test.html")
	public String test(HttpServletRequest request, Model model) {

		return "/modules/repository/test";
	}

	@RequestMapping("main.html")
	public String toMain(HttpServletRequest request, Model model) {
		return "/modules/main";
	}

	// 知识加工-类列表
	@RequestMapping("show-edit-class-list.html")
	public String toKnowledgeEditClassList() {

		return "/modules/knowledgedata/knowledge_DataProperty_class_list";
	}

	// 知识加工-发布列表页
	@RequestMapping("show-edit-data-submit.html")
	public String toKnowledgeEditDataClassSubmit() {

		return "/modules/repository/knowledge_edit_data_submit";
	}

}
